//
//  UIViewController+Swizzling.m
//  SYPerfectDemo
//
//  Created by Lssyyy on 2019/7/5.
//  Copyright © 2019年 Lssyyy. All rights reserved.
//

#import "UIViewController+Swizzling.h"
#import "NSObject+Swizzling.h"
@implementation UIViewController (Swizzling)
+(void)load{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        [UIViewController methodSwizzlingWithOriginalSelector:@selector(viewDidAppear:)
                                           bySwizzledSelector:@selector(my_ViewDidAppear:)];
        
    });
}
-(void) my_ViewDidAppear:(BOOL)animated{
    [self my_ViewDidAppear:animated];
    NSLog(@"===== %@ 自定义的viewDidAppear=====",[self class]);
}
@end
